import request from "/@/utils/request";

// 获取级联模拟数据
export function getCascaderData(params?: EmptyObjectType) {
	return Promise.resolve({
		code: 200,
		data: {
			data: [
				{
					deptName: "Tamplate.PC",
					createTime: new Date().toLocaleString(),
					status: true,
					sort: 1,
					describe: "顶级部门",
					id: 1,
					children: [
						{
							deptName: "项目实施部门",
							status: true,
							sort: 1,
							describe: "",
							id: 2,
						},
						{
							deptName: "业务部门",
							status: true,
							sort: 2,
							describe: "",
							id: 3,
						},
						{
							deptName: "技术部门",
							status: true,
							sort: 3,
							describe: "",
							id: 4,
						},
						{
							deptName: "人事部门",
							status: true,
							sort: 4,
							describe: "",
							id: 5,
						},
					],
				},
			],
		},
		msg: "success",
	});
}

// 获取核酸机构模拟数据
export function getMechanismData(params?: EmptyObjectType) {
	return Promise.resolve({
		code: 200,
		data: {
			data: [
				{ label: "核酸机构1", value: 1 },
				{ label: "核酸机构2", value: 2 },
				{ label: "核酸机构3", value: 3 },
				{ label: "核酸机构4", value: 4 },
				{ label: "核酸机构5", value: 5 },
			],
		},
		msg: "success",
	});
}

// 获取表格模拟数据
export function getTableData(params?: EmptyObjectType) {
	return request.get("/mock/tableData", { params });
}

// 获取用户模拟数据
export function getUserData(params?: EmptyObjectType) {
	return request.get("/mock/userData", { params });
}

// 获取角色模拟数据
export function getRoleData(params?: EmptyObjectType) {
	return request.get("/mock/roleData", { params });
}
